package service

import (
	"iris-starter/datamodels"
	"iris-starter/repository"
)

type IAdminUserService interface {
	Detail(id uint64) (*datamodels.AdminUser, error)
}

type AdminUserSrv struct {
	repo repository.IAdminUserRepo
}

func NewAdminUserSrv() repository.IAdminUserRepo {
	return &AdminUserSrv{repo: repository.NewAdminUserRepo()}
}
func (a AdminUserSrv) Detail(id uint64) (*datamodels.AdminUser, error) {
	return a.repo.Detail(id)
}
